package com.example.chapter03.demo3;
import javax.servlet.*;
import java.io.IOException;
public class MyFilter implements Filter {
//@Override
//public void doFilter(ServletRequest requ, ServletResponse resp,
//FilterChain filterChain) throws IOException, ServletException {
//       System.out.println("处理请求前的处理");
//    filterChain.doFilter(requ,resp);
//    System.out.println("处理请求后的处理");
//    }
    @Override
  public void doFilter(ServletRequest requ, ServletResponse resp,
  FilterChain filterChain) throws IOException, ServletException {
         System.out.println("处理请求前的处理");
         filterChain.doFilter(requ,resp);
         System.out.println("处理请求后的处理");
         }
  }